import React from "react";
import { useContext } from "react";
import { context } from "./A";

export default function C() {
  let add = () => {
    setcount(count + 1);
  };
  let { count, setcount } = useContext(context);
  return (
    <>
      <h3>cccc{count}</h3>
      <button onClick={add}>+1</button>
    </>
  );
}
